package com.jltx.zeus.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.CoroutineScope

/**
 * @author jltxseo
 *         Created by junlintianxia on 2020/05/10.
 */
open class BaseViewModel : ViewModel(), CoroutineDelegate {
    val vmActionEvent = MutableLiveData<BaseActionEvent>()

    override val actionEvent: MutableLiveData<BaseActionEvent>
        get() = vmActionEvent
    override val viewModelScope: CoroutineScope
        get() = (this as ViewModel).viewModelScope
}